package demo1;

import core.io.Request;
import core.io.Response;
import core.server.HttpServlet;

/**
 * @author wsz
 * @date 2021/11/16 16:19
 **/
public class Demo1Servlet extends HttpServlet {

    public static void main(String[] args) {
        System.out.println("Demo1Servlet");
    }

    @Override
    public void doGet(Request request, Response response) {
        try {
            response.output("Demo1Servlet-doGet");
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }

    @Override
    public void doPost(Request request, Response response) {
        try {
            response.output("Demo1Servlet-doGet");
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }

    @Override
    public void init() {

    }

    @Override
    public void destory() {

    }
}
